﻿using Basic.FormModel.DB;
using Basic.FormRemoteModel.Page.Model;
using WeDonekRpc.Model;

namespace Basic.FormCollect
{
    public interface ICustomPageCollect
    {
        long Add ( PageAdd data );
        void Delete ( DBCustomPage db );
        Result Get<Result> ( long id ) where Result : class, new();
        bool Set ( DBCustomPage page, PageSet set );
        Result[] Query<Result> ( PageQueryParam query, IBasicPage paging, out int count ) where Result : class;
        bool Enable ( DBCustomPage page );
        bool Disable ( DBCustomPage page );
    }
}